from math import *

def print_a_list(a_list):
    for item in a_list:
        print(item)

x=1.0

theta=2.0

y0=3.0

v0=4.0

g=0.98

y = x * tan(theta) - (1/(2*v0))*g*x**2/(cos(theta)**2) + y0

print y


